package Ara_Con;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import Ara_Dao.RboardDao;

public class RboardWriter implements Controller{

	private RboardDao RboardDao;
	
	public void setRboardDao(RboardDao rboardDao) {
		this.RboardDao = rboardDao;
	}
	
	@Override
	public ModelAndView handleRequest(HttpServletRequest arg0,
			HttpServletResponse arg1) throws Exception {
		
		
		String rb_wr = arg0.getParameter("rb_wr");
		Object rboard = RboardDao.RboardWriter(rb_wr);
		
		ModelAndView mav = new ModelAndView();
		mav.addObject("rboard",rboard);
		mav.setViewName("RboardWriter");
		
		return mav;
	}
	
}
